from langchain_community.retrievers import BM25Retriever

bm25_retriever = BM25Retriever.from_documents(all_splits)
bm25_retriever.k = 3

vector_retriever = vectorstore.as_retriever(search_kw)